//
//  XYCustomVideoView.h
//  NemoSDKDemo
//
//  Created by 高超 on 2020/8/1.
//  Copyright © 2020 JackYang. All rights reserved.
//
//
//    XYCustomVideoView类是自定义的videoView，绘制ui层视频窗口展示内容
//    您在集成SDK时，可以直接使用此类或者自定义videoView

#import <NemoSDK/NemoSDK.h>
#import "XYActivityIndicator.h"

NS_ASSUME_NONNULL_BEGIN

@interface XYCustomVideoView : UIView

/// 是否本地视频
@property (nonatomic, assign) BOOL isLocalView;

/// 视频流信息
@property (nonatomic, strong) NemoLayout *layout;

/// 背景图
@property (nonatomic, strong) UIImageView *bgImageView;

/// 头像
@property (nonatomic, strong) UIImageView *avatarImgView;

/// 全屏时展示用户名
@property (nonatomic, strong) UILabel *fullScreenNameLabel;

/// 麦克风
@property (nonatomic, strong) UIImageView *micImgView;

/// 名称
@property (nonatomic, strong) UILabel *displayNameLabel;

/// 提示语
@property (nonatomic, strong) UILabel *alertMsgLabel;

/// 加载动画
@property (nonatomic, strong) XYActivityIndicator *indicator;

/// 是否全屏
@property (nonatomic, assign) BOOL isFullScreen;

/// 是否横屏
@property (nonatomic, assign) BOOL landScape;

/// 设置为全屏展示
/// @param landScape 横屏
- (void)fullScreen:(BOOL)landScape;

/// 小窗口展示
/// @param point 小窗口位置
/// @param isFixSize 是否调整出口大小，竖屏时，2人入会右上角小窗口
/// @param isTop 是否是顶部view
/// @param landScape 横屏
- (void)moveToPoint:(CGPoint)point isFixSize:(BOOL)isFixSize isTop:(BOOL)isTop landScape:(BOOL)landScape;

/// 更新frame
/// @param frame frame
- (void)updateFrame:(CGRect)frame;

@end

NS_ASSUME_NONNULL_END
